package com.timothy.answer;


import com.timothy.service.MessageSender;

public class PriorityAnswer extends BaseAnswer {
/*	private List<Integer> valueList = new ArrayList<Integer>();
	
	public List<Integer> getAnswerList() {
		return valueList;
	}

	public void setAnswerList(List<Integer> answerList) {
		this.valueList = answerList;
	}

	@Override
	public String getAnswerContent() {
		StringBuffer sb = new StringBuffer();
		for( Integer value : valueList )
			sb.append( value ).append( "," );
		return sb.substring(0, sb.length()-1);
	}

	@Override
	public String toMessage() {
		int slide = getQuestion().getSlideIndex();
		return String.format( MessageSender.Single_Select_Answer, slide, getAnswerContent() );
	}*/
	
	private String mark;
	
	public String getMark() {
		return mark;
	}

	public void setMark(String mark) {
		this.mark = mark;
	}

	@Override
	public String getAnswerContent() {
		return mark;
	}

	@Override
	public String toMessage() {
		int slide = getQuestion().getSlideIndex();
		return String.format( MessageSender.Single_Select_Answer, slide, getAnswerContent());
	}
}
